package tcpFirmware.model;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class DBtoFilm {

    public static ResultSet getMovieDetail(String movieName) throws SQLException {
        Connection connection1 = new DBHelper().getConnection();
        Statement statement = connection1.createStatement();
        ResultSet rs = statement.executeQuery("select * from Movie where name='"+movieName+"'");
        rs.next();
        return rs;
    }
}
